package svc

import (
	"github.com/go-redis/redis/v8"
	"gorm.io/gorm"
	"wxapi/internal/config"
)

type ServiceContext struct {
	Config config.Config
	Mysql  *gorm.DB
	Redis  *redis.Client
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config: c,
	}
}
